package com.wwk.dao;

import com.wwk.pojo.OrderSetting;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * @Classname OrderSettingDao
 * @Description TODO
 * @Date 2020/11/4 17:26
 * @Created by com.wwk
 * @Author com.wwk
 */
public interface OrderSettingDao {

    //添加数据
    public void addData2Base(OrderSetting orderSetting);

    //更新可预约数据
    public void editNumberByOrderDate(Map map);

    //更新已预约人数
    public void editReservationsByOrderDate(OrderSetting orderSetting);

    //从数据库中查日期数据存在的数量
    public long findCountByOrderDate(String orderDate);

    //从数据库中查出在日期范围内的所有OrderSetting
    public List<OrderSetting> findOrderSettingByDate(Map map);

    //根据预约日期查询预约设置信息
    public OrderSetting findByOrderDate(Date orderDate);
}
